import axios from './$http'


const cache = new Map();

const api = {
    clearCache() {
        cache.clear();
    },
    async downloadFile(url) {
        const result = await axios.post(url, {});
        return result;
    },
    async outHospitalRevoke(url, body) {
        const result = await axios.post(url, body);
        return result;
    },
    async getFileLines(linesUrl) {
        const result = await axios.post(linesUrl, {});
        return result;
    },
    async queryMedicareTradeLog(data) {

        const result = await axios.post("/hbos-mcc/medicare/log/query", {
            "medicareTypeCode": "GZYB",
            "tradeStatusCode": 2,
            "patientName": data.patientName,
            "startTime": data.startTime,
            "endTime": data.endTime,
            "current": "1",
            "size": 2000
        });
        return result;
    }
}

export default api;